package com.shopping.aspect;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;

@Component
@Aspect
public class CategoryAspect {
    @Pointcut("execution(public int com.shopping.service.impl.CategoryService.addCategory())")
    public void addCategory() {}
    @Pointcut("execution(public int com.shopping.service.impl.CategoryService.editCategory())")
    public void editCategory(){}
    @Pointcut("execution(public int com.shopping.service.impl.CategoryService.deleteCategory())")
    public void deleteCategory(){}
    @Pointcut("execution(public int com.shopping.service.impl.CategoryService.selectCategory())")
    public void selectCategory(){}
    @Pointcut("execution(public int com.shopping.service.impl.CategoryService.getCategoryById())")
    public void getCategoryById(){}
}
